]> dgit.raspbian.org Git - gnome-shell.git/commit
main: Warn when unsafe mode is toggled
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 23 Nov 2021 19:19:14 +0000 (20:19 +0100)
committerMarge Bot <marge-bot@gnome.org>
Fri, 26 Nov 2021 16:14:39 +0000 (16:14 +0000)
commitaba0d0bb1ba4cfd1e55c1f96fc806917b843305f
tree87f7203d498087852da86a3c774ba3871e357173
parent254b0ca2ad0700a301c2b2e9c0ad50637bdbf46d
main: Warn when unsafe mode is toggled

MetaContext:unsafe-mode was added as a debugging tool to temporarily
remove restrictions on privileged APIs. But as it turns out, there
are now extensions that toggle the property permanently. Right now
none of them are malicious (as far as I can see), but it's still a
bad idea and should be discouraged.

Do this with a notification that warns the user when unsafe mode is
enabled non-interactively (i.e. via looking glass), and hopefully
also clarifies what the weird lock icon in the top bar is about.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4798

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2050>
js/ui/main.js